import styles from "./SearchPage.module.css";
import React, {useEffect} from "react";
import {ProductList} from "./components/productList";
import {useDispatch} from "react-redux";
import {queryHome} from "../../store/home/slice";
import {queryProduct} from "../../store/product/slice";

interface MatchParams {
    keywords: string;
}

export const SearchPage: React.FC = () => {
    const dispatch = useDispatch()

    useEffect(() => {
        dispatch(queryProduct({}))
    }, []);

    return (
        <>
            <div>
                <ProductList/>
            </div>
        </>
    );
};
